<template>
  <div>
    <p>欢迎登陆</p>
    <button @click="login">登陆</button>
  </div>
</template>

<script>
export default {
  methods: {
    login() {
      localStorage.setItem('isLogin', JSON.stringify(true));
    }
  }
}
</script>

<style>

</style>